package com.shenyong.ladmin.service;

import com.shenyong.entity.LoginUsers;
import com.shenyong.ladmin.entity.*;
import com.shenyong.ladmin.result.Page;

import java.util.List;
import java.util.Map;

/**
 * Create By:qiang
 * Date: 2019/11/25 20:23
 * 文件说明: UsersService
 */

public interface UsersService {
    //分页查询用户
    List<Users> getUsersPage(Page page);
    //查询用户总数
    int getUsersCount(Page page);
    //修改用户
    int updateUser(Users user);
    //查询所有等级
    //实现下拉列表框
    List<Level> userLevelAll();
    //改变用户状态
    int updateUserStateByUser_Id(Users user);
    public LoginUsers usersLogin(Users users);

    public int userAdd(Users users);

    public int savePassword(Map<String,Object> map);

    public Map<String,Object> getAdminUser(Page page);
    public int getAdminUserCount(Page page);

    public int saveAdminUser(Users users);

    public  List<PrivilegeRes> getPrivilegeHierarchy();
    public List<Users> getFriends(Users users);
    public Note randNote();

    public List<Article> getCollections(Collection collection);
}
